from docx import Document

doc = Document(r'')
doc1 = Document()


from openpyxl.reader.excel import load_workbook

# source_excel = load_workbook(fr'')
#
# c5 = str(source_excel['word']['c5'].value)
# d5 = str(source_excel['word']['d5'].value)
# e5 = str(round(float(source_excel['word']['e5'].value),2))
# f5 = str(source_excel['word']['f5'].value)
# h6 = str(source_excel['word']['h6'].value)
# print(e5)

i = 0
for paragraph in doc.paragraphs:
    print(f"{i}")
    print(paragraph.text)
    i = i+1


# run3 = doc.paragraphs[3].runs


# for r in run3:
#     print(r.text)
#     if 'c5' in r.text:
#
#         print(r.text)
#         r.text = c5
#     if 'd5' in r.text:
#
#         print(r.text)
#         r.text = d5
#     if 'e5' in r.text:
#
#         print(r.text)
#         r.text = e5
#     if 'f5' in r.text:
#
#         print(r.text)
#         r.text = f5


# run3 = run3.text.replace('3250','001')

doc1.save(r'D:\Desktop\word\b.docx')
